using CoreProject.IRepository;
using CoreProject.IService;
using CoreProject.Model;

namespace CoreProject.Service
{
  public class ImageService : BaseService<Image>, IImageService
  {
    private readonly IImageRepoistory repository;

    public ImageService(IImageRepoistory repository) : base(repository)
    {
      this.repository = repository;
    }

    public async Task<Image> AddImage(Image image)
    {
      return  await repository.AddImage(image);
    }
  }
}
